/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SearchBillingMore.java
 *
 * Created on Aug 7, 2012, 2:41:26 PM
 */

package Model.dialog;

import Processing.PikaDate;
import java.util.ArrayList;

/**
 *
 * @author Admin
 */
public class SearchBillingMore extends javax.swing.JDialog {

    /** Creates new form SearchBillingMore */
    public SearchBillingMore(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btgPaid = new javax.swing.ButtonGroup();
        pnlCenter = new javax.swing.JPanel();
        cbPatientID = new javax.swing.JCheckBox();
        cbPersonMadeID = new javax.swing.JCheckBox();
        cbCollectiorID = new javax.swing.JCheckBox();
        cbDateMade = new javax.swing.JCheckBox();
        cbDatePaid = new javax.swing.JCheckBox();
        cbPaid = new javax.swing.JCheckBox();
        txtPatientID = new javax.swing.JTextField();
        txtPersonMadeID = new javax.swing.JTextField();
        txtCollectorID = new javax.swing.JTextField();
        cbbDateMadeThan1 = new javax.swing.JComboBox();
        cbbDateMadeYear1 = new javax.swing.JComboBox();
        cbbDateMadeMonth1 = new javax.swing.JComboBox();
        cbbDateMadeDay1 = new javax.swing.JComboBox();
        cbbDateMadeThan2 = new javax.swing.JComboBox();
        cbbDateMadeDay2 = new javax.swing.JComboBox();
        cbbDateMadeMonth2 = new javax.swing.JComboBox();
        cbbDateMadeYear2 = new javax.swing.JComboBox();
        cbbDatePaidThan1 = new javax.swing.JComboBox();
        cbbDatePaidDay1 = new javax.swing.JComboBox();
        cbbDatePaidThan2 = new javax.swing.JComboBox();
        cbbDatePaidDay2 = new javax.swing.JComboBox();
        cbbDatePaidMonth2 = new javax.swing.JComboBox();
        cbbDatePaidYear2 = new javax.swing.JComboBox();
        cbbDatePaidMonth1 = new javax.swing.JComboBox();
        cbbDatePaidYear1 = new javax.swing.JComboBox();
        rdbPaid = new javax.swing.JRadioButton();
        rdbNotPaid = new javax.swing.JRadioButton();
        pnlBootom = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Bill Filter");
        setResizable(false);

        cbPatientID.setFont(new java.awt.Font("Tahoma", 1, 11));
        cbPatientID.setText("               Patient's ID:");
        cbPatientID.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                cbPatientIDStateChanged(evt);
            }
        });

        cbPersonMadeID.setFont(new java.awt.Font("Tahoma", 1, 11));
        cbPersonMadeID.setText("    Person Made's ID:");
        cbPersonMadeID.setToolTipText("");
        cbPersonMadeID.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                cbPersonMadeIDStateChanged(evt);
            }
        });

        cbCollectiorID.setFont(new java.awt.Font("Tahoma", 1, 11));
        cbCollectiorID.setText("            Collector's ID:");
        cbCollectiorID.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                cbCollectiorIDStateChanged(evt);
            }
        });

        cbDateMade.setFont(new java.awt.Font("Tahoma", 1, 11));
        cbDateMade.setText("                 Date Made:");
        cbDateMade.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                cbDateMadeStateChanged(evt);
            }
        });

        cbDatePaid.setFont(new java.awt.Font("Tahoma", 1, 11));
        cbDatePaid.setText("                   Date Paid:");
        cbDatePaid.setToolTipText("");
        cbDatePaid.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                cbDatePaidStateChanged(evt);
            }
        });

        cbPaid.setFont(new java.awt.Font("Tahoma", 1, 11));
        cbPaid.setText("           Paid/Not Paid:");
        cbPaid.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                cbPaidStateChanged(evt);
            }
        });
        cbPaid.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbPaidActionPerformed(evt);
            }
        });

        txtPatientID.setEnabled(false);
        txtPatientID.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtPatientIDActionPerformed(evt);
            }
        });

        txtPersonMadeID.setEnabled(false);
        txtPersonMadeID.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtPersonMadeIDActionPerformed(evt);
            }
        });

        txtCollectorID.setEnabled(false);

        cbbDateMadeThan1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "=", ">", ">=", "<", "<=" }));
        cbbDateMadeThan1.setEnabled(false);
        cbbDateMadeThan1.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDateMadeThan1ItemStateChanged(evt);
            }
        });

        cbbDateMadeYear1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023" }));
        cbbDateMadeYear1.setEnabled(false);
        cbbDateMadeYear1.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDateMadeYear1ItemStateChanged(evt);
            }
        });

        cbbDateMadeMonth1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
        cbbDateMadeMonth1.setEnabled(false);
        cbbDateMadeMonth1.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDateMadeMonth1ItemStateChanged(evt);
            }
        });

        cbbDateMadeDay1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        cbbDateMadeDay1.setEnabled(false);

        cbbDateMadeThan2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "<", "<=" }));
        cbbDateMadeThan2.setEnabled(false);
        cbbDateMadeThan2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDateMadeThan2ItemStateChanged(evt);
            }
        });

        cbbDateMadeDay2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        cbbDateMadeDay2.setEnabled(false);

        cbbDateMadeMonth2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
        cbbDateMadeMonth2.setEnabled(false);
        cbbDateMadeMonth2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDateMadeMonth2ItemStateChanged(evt);
            }
        });

        cbbDateMadeYear2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023" }));
        cbbDateMadeYear2.setEnabled(false);
        cbbDateMadeYear2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDateMadeYear2ItemStateChanged(evt);
            }
        });
        cbbDateMadeYear2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbbDateMadeYear2ActionPerformed(evt);
            }
        });

        cbbDatePaidThan1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "=", ">", ">=", "<", "<=" }));
        cbbDatePaidThan1.setEnabled(false);
        cbbDatePaidThan1.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDatePaidThan1ItemStateChanged(evt);
            }
        });

        cbbDatePaidDay1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        cbbDatePaidDay1.setEnabled(false);

        cbbDatePaidThan2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "<", "<=" }));
        cbbDatePaidThan2.setEnabled(false);
        cbbDatePaidThan2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDatePaidThan2ItemStateChanged(evt);
            }
        });

        cbbDatePaidDay2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        cbbDatePaidDay2.setEnabled(false);

        cbbDatePaidMonth2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
        cbbDatePaidMonth2.setEnabled(false);
        cbbDatePaidMonth2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDatePaidMonth2ItemStateChanged(evt);
            }
        });

        cbbDatePaidYear2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023" }));
        cbbDatePaidYear2.setEnabled(false);
        cbbDatePaidYear2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDatePaidYear2ItemStateChanged(evt);
            }
        });

        cbbDatePaidMonth1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
        cbbDatePaidMonth1.setEnabled(false);
        cbbDatePaidMonth1.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDatePaidMonth1ItemStateChanged(evt);
            }
        });

        cbbDatePaidYear1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023" }));
        cbbDatePaidYear1.setEnabled(false);
        cbbDatePaidYear1.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbDatePaidYear1ItemStateChanged(evt);
            }
        });

        btgPaid.add(rdbPaid);
        rdbPaid.setSelected(true);
        rdbPaid.setText("Paid");
        rdbPaid.setEnabled(false);

        btgPaid.add(rdbNotPaid);
        rdbNotPaid.setText("Not Paid");
        rdbNotPaid.setEnabled(false);

        javax.swing.GroupLayout pnlCenterLayout = new javax.swing.GroupLayout(pnlCenter);
        pnlCenter.setLayout(pnlCenterLayout);
        pnlCenterLayout.setHorizontalGroup(
            pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCenterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(pnlCenterLayout.createSequentialGroup()
                            .addComponent(cbbDateMadeThan2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(cbbDateMadeYear2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cbbDateMadeMonth2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cbbDateMadeDay2, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(pnlCenterLayout.createSequentialGroup()
                            .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(pnlCenterLayout.createSequentialGroup()
                                    .addComponent(cbPatientID)
                                    .addGap(18, 18, 18)
                                    .addComponent(txtPatientID))
                                .addGroup(pnlCenterLayout.createSequentialGroup()
                                    .addComponent(cbPersonMadeID)
                                    .addGap(18, 18, 18)
                                    .addComponent(txtPersonMadeID))
                                .addGroup(pnlCenterLayout.createSequentialGroup()
                                    .addComponent(cbCollectiorID)
                                    .addGap(18, 18, 18)
                                    .addComponent(txtCollectorID))
                                .addGroup(pnlCenterLayout.createSequentialGroup()
                                    .addComponent(cbDateMade)
                                    .addGap(18, 18, 18)
                                    .addComponent(cbbDateMadeThan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(cbbDateMadeYear1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cbbDateMadeMonth1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cbbDateMadeDay1, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlCenterLayout.createSequentialGroup()
                        .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cbDatePaid)
                            .addComponent(cbPaid))
                        .addGap(18, 18, 18)
                        .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlCenterLayout.createSequentialGroup()
                                .addComponent(rdbPaid)
                                .addGap(18, 18, 18)
                                .addComponent(rdbNotPaid))
                            .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(pnlCenterLayout.createSequentialGroup()
                                    .addComponent(cbbDatePaidThan2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(cbbDatePaidYear2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cbbDatePaidMonth2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cbbDatePaidDay2, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(pnlCenterLayout.createSequentialGroup()
                                    .addComponent(cbbDatePaidThan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(cbbDatePaidYear1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cbbDatePaidMonth1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cbbDatePaidDay1, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addContainerGap(14, Short.MAX_VALUE))
        );
        pnlCenterLayout.setVerticalGroup(
            pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCenterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbPatientID)
                    .addComponent(txtPatientID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbPersonMadeID)
                    .addComponent(txtPersonMadeID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbCollectiorID)
                    .addComponent(txtCollectorID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbDateMade)
                    .addComponent(cbbDateMadeThan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbDateMadeYear1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbDateMadeMonth1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbDateMadeDay1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbDateMadeThan2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbDateMadeYear2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbDateMadeMonth2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbDateMadeDay2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cbDatePaid)
                    .addGroup(pnlCenterLayout.createSequentialGroup()
                        .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbbDatePaidThan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbDatePaidYear1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbDatePaidMonth1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbDatePaidDay1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbbDatePaidThan2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbDatePaidYear2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbDatePaidMonth2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbDatePaidDay2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(18, 18, 18)
                .addGroup(pnlCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbPaid)
                    .addComponent(rdbPaid)
                    .addComponent(rdbNotPaid))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        getContentPane().add(pnlCenter, java.awt.BorderLayout.CENTER);

        pnlBootom.setPreferredSize(new java.awt.Dimension(400, 50));

        jButton1.setText("OK");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("Cancel");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlBootomLayout = new javax.swing.GroupLayout(pnlBootom);
        pnlBootom.setLayout(pnlBootomLayout);
        pnlBootomLayout.setHorizontalGroup(
            pnlBootomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlBootomLayout.createSequentialGroup()
                .addContainerGap(99, Short.MAX_VALUE)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton2)
                .addGap(137, 137, 137))
        );
        pnlBootomLayout.setVerticalGroup(
            pnlBootomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBootomLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addGroup(pnlBootomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        getContentPane().add(pnlBootom, java.awt.BorderLayout.PAGE_END);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cbPatientIDStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_cbPatientIDStateChanged
        // TODO add your handling code here:
        if (cbPatientID.isSelected()) {
            txtPatientID.setEnabled(true);
        }else{
            txtPatientID.setEnabled(false);
        }
    }//GEN-LAST:event_cbPatientIDStateChanged

    private void cbPersonMadeIDStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_cbPersonMadeIDStateChanged
        // TODO add your handling code here:
        if (cbPersonMadeID.isSelected()) {
            txtPersonMadeID.setEnabled(true);
        }else{
            txtPersonMadeID.setEnabled(false);
        }
    }//GEN-LAST:event_cbPersonMadeIDStateChanged

    private void cbCollectiorIDStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_cbCollectiorIDStateChanged
        // TODO add your handling code here:
        if (cbCollectiorID.isSelected()) {
            txtCollectorID.setEnabled(true);
        }else{
            txtCollectorID.setEnabled(false);
        }
    }//GEN-LAST:event_cbCollectiorIDStateChanged

    private void cbDateMadeStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_cbDateMadeStateChanged
        // TODO add your handling code here:
        if (cbDateMade.isSelected()) {
            cbbDateMadeThan1.setEnabled(true);
            cbbDateMadeYear1.setEnabled(true);
            cbbDateMadeMonth1.setEnabled(true);
            cbbDateMadeDay1.setEnabled(true);
        } else {
            cbbDateMadeThan1.setEnabled(false);
            cbbDateMadeYear1.setEnabled(false);
            cbbDateMadeMonth1.setEnabled(false);
            cbbDateMadeDay1.setEnabled(false);
            cbbDateMadeThan2.setEnabled(false);
            cbbDateMadeYear2.setEnabled(false);
            cbbDateMadeMonth2.setEnabled(false);
            cbbDateMadeDay2.setEnabled(false);
        }
    }//GEN-LAST:event_cbDateMadeStateChanged

    private void cbDatePaidStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_cbDatePaidStateChanged
        // TODO add your handling code here:
        if (cbDatePaid.isSelected()) {
            cbbDatePaidThan1.setEnabled(true);
            cbbDatePaidYear1.setEnabled(true);
            cbbDatePaidMonth1.setEnabled(true);
            cbbDatePaidDay1.setEnabled(true);
        } else {
            cbbDatePaidThan1.setEnabled(false);
            cbbDatePaidYear1.setEnabled(false);
            cbbDatePaidMonth1.setEnabled(false);
            cbbDatePaidDay1.setEnabled(false);
            cbbDatePaidThan2.setEnabled(false);
            cbbDatePaidYear2.setEnabled(false);
            cbbDatePaidMonth2.setEnabled(false);
            cbbDatePaidDay2.setEnabled(false);
        }
    }//GEN-LAST:event_cbDatePaidStateChanged

    private void cbPaidStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_cbPaidStateChanged
        // TODO add your handling code here:
        if (cbPaid.isSelected()) {
            rdbNotPaid.setEnabled(true);
            rdbPaid.setEnabled(true);
        } else {
            rdbNotPaid.setEnabled(false);
            rdbPaid.setEnabled(false);
        }
    }//GEN-LAST:event_cbPaidStateChanged

    private void cbbDateMadeThan1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDateMadeThan1ItemStateChanged
        // TODO add your handling code here:
        if (evt.getStateChange() == java.awt.event.ItemEvent.SELECTED) {
            if (cbbDateMadeThan1.getSelectedItem().equals("=") || cbbDateMadeThan1.getSelectedItem().equals("<") || cbbDateMadeThan1.getSelectedItem().equals("<=")) {
                cbbDateMadeThan2.setEnabled(false);
                cbbDateMadeDay2.setEnabled(false);
                cbbDateMadeMonth2.setEnabled(false);
                cbbDateMadeYear2.setEnabled(false);
                cbbDateMadeThan2.setSelectedItem("No");
            }else{
                cbbDateMadeThan2.setEnabled(true);
            }
        }
    }//GEN-LAST:event_cbbDateMadeThan1ItemStateChanged

    private void cbbDateMadeThan2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDateMadeThan2ItemStateChanged
        // TODO add your handling code here:
        if (evt.getStateChange() == java.awt.event.ItemEvent.SELECTED) {
            if (cbbDateMadeThan2.getSelectedItem().equals("No")) {
                cbbDateMadeDay2.setEnabled(false);
                cbbDateMadeMonth2.setEnabled(false);
                cbbDateMadeYear2.setEnabled(false);
            }else{
                cbbDateMadeDay2.setEnabled(true);
                cbbDateMadeMonth2.setEnabled(true);
                cbbDateMadeYear2.setEnabled(true);
            }
        }
    }//GEN-LAST:event_cbbDateMadeThan2ItemStateChanged

    private void cbbDatePaidThan1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDatePaidThan1ItemStateChanged
        // TODO add your handling code here:
        if (evt.getStateChange() == java.awt.event.ItemEvent.SELECTED) {
            if (cbbDatePaidThan1.getSelectedItem().equals("=") || cbbDatePaidThan1.getSelectedItem().equals("<") || cbbDatePaidThan1.getSelectedItem().equals("<=")) {
                cbbDatePaidThan2.setEnabled(false);
                cbbDatePaidDay2.setEnabled(false);
                cbbDatePaidMonth2.setEnabled(false);
                cbbDatePaidYear2.setEnabled(false);
                cbbDatePaidThan2.setSelectedItem("No");
            }else{
                cbbDatePaidThan2.setEnabled(true);
            }
        }
    }//GEN-LAST:event_cbbDatePaidThan1ItemStateChanged

    private void cbbDatePaidThan2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDatePaidThan2ItemStateChanged
        // TODO add your handling code here:
        if (evt.getStateChange() == java.awt.event.ItemEvent.SELECTED) {
            if (cbbDatePaidThan2.getSelectedItem().equals("No")) {
                cbbDatePaidDay2.setEnabled(false);
                cbbDatePaidMonth2.setEnabled(false);
                cbbDatePaidYear2.setEnabled(false);
            }else{
                cbbDatePaidDay2.setEnabled(true);
                cbbDatePaidMonth2.setEnabled(true);
                cbbDatePaidYear2.setEnabled(true);
            }
        }
    }//GEN-LAST:event_cbbDatePaidThan2ItemStateChanged

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:\
        this.dispose();
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        if(cbPatientID.isSelected()){
            String select = "[Patient's ID] = " + "'" + txtPatientID.getText() + "'";
            list.add(select);
        }

        if(cbPersonMadeID.isSelected()){
            String select = "[Person Make's ID] = " + "'" + txtPersonMadeID.getText() + "'";
            list.add(select);
        }

        if(cbCollectiorID.isSelected()){
            String select = "[Collector's ID] = " + "'" + txtCollectorID.getText() + "'";
            list.add(select);
        }

        if(cbDateMade.isSelected()){
            if (cbbDateMadeThan1.getSelectedItem().equals("=")) {
                // Lấy một chuỗi dạng: "[Date Made] = '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Made] = " + "'" + cbbDateMadeYear1.getSelectedItem().toString() + "-" + cbbDateMadeMonth1.getSelectedItem().toString() + "-" + cbbDateMadeDay1.getSelectedItem().toString() + "'";
                list.add(select);
            }else if (cbbDateMadeThan1.getSelectedItem().equals("<")) {
                // Lấy một chuỗi dạng: "[Date Made] < '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Made] < " + "'" + cbbDateMadeYear1.getSelectedItem().toString() + "-" + cbbDateMadeMonth1.getSelectedItem().toString() + "-" + cbbDateMadeDay1.getSelectedItem().toString() + "'";
                list.add(select);
            }
            else if (cbbDateMadeThan1.getSelectedItem().equals("<=")) {
                // Lấy một chuỗi dạng: "[Date Made] <= '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Made] <= " + "'" + cbbDateMadeYear1.getSelectedItem().toString() + "-" + cbbDateMadeMonth1.getSelectedItem().toString() + "-" + cbbDateMadeDay1.getSelectedItem().toString() + "'";
                list.add(select);
            }else if (cbbDateMadeThan1.getSelectedItem().equals(">")) {
                // Lấy một chuỗi dạng: "[Date Made] > '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Made] > " + "'" + cbbDateMadeYear1.getSelectedItem().toString() + "-" + cbbDateMadeMonth1.getSelectedItem().toString() + "-" + cbbDateMadeDay1.getSelectedItem().toString() + "'";
                list.add(select);
                
                if (cbbDateMadeThan2.getSelectedItem().equals("<")) {
                    // Lấy một chuỗi dạng: "[Date Made] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Made] < " + "'" + cbbDateMadeYear2.getSelectedItem().toString() + "-" + cbbDateMadeMonth2.getSelectedItem().toString() + "-" + cbbDateMadeDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }else if (cbbDateMadeThan2.getSelectedItem().equals("<=")) {
                    // Lấy một chuỗi dạng: "[Date Made] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Made] <= " + "'" + cbbDateMadeYear2.getSelectedItem().toString() + "-" + cbbDateMadeMonth2.getSelectedItem().toString() + "-" + cbbDateMadeDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }
            }else if (cbbDateMadeThan1.getSelectedItem().equals(">=")) {
                // Lấy một chuỗi dạng: "[Date Made] > '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Made] >= " + "'" + cbbDateMadeYear1.getSelectedItem().toString() + "-" + cbbDateMadeMonth1.getSelectedItem().toString() + "-" + cbbDateMadeDay1.getSelectedItem().toString() + "'";
                list.add(select);

                if (cbbDateMadeThan2.getSelectedItem().equals("<")) {
                    // Lấy một chuỗi dạng: "[Date Made] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Made] < " + "'" + cbbDateMadeYear2.getSelectedItem().toString() + "-" + cbbDateMadeMonth2.getSelectedItem().toString() + "-" + cbbDateMadeDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }else if (cbbDateMadeThan2.getSelectedItem().equals("<=")) {
                    // Lấy một chuỗi dạng: "[Date Made] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Made] <= " + "'" + cbbDateMadeYear2.getSelectedItem().toString() + "-" + cbbDateMadeMonth2.getSelectedItem().toString() + "-" + cbbDateMadeDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }
            }
        }

        if(cbDatePaid.isSelected()){
            if (cbbDatePaidThan1.getSelectedItem().equals("=")) {
                // Lấy một chuỗi dạng: "[Date Paid] = '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Paid] = " + "'" + cbbDatePaidYear1.getSelectedItem().toString() + "-" + cbbDatePaidMonth1.getSelectedItem().toString() + "-" + cbbDatePaidDay1.getSelectedItem().toString() + "'";
                list.add(select);
            }else if (cbbDatePaidThan1.getSelectedItem().equals("<")) {
                // Lấy một chuỗi dạng: "[Date Paid] < '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Paid] < " + "'" + cbbDatePaidYear1.getSelectedItem().toString() + "-" + cbbDatePaidMonth1.getSelectedItem().toString() + "-" + cbbDatePaidDay1.getSelectedItem().toString() + "'";
                list.add(select);
            }
            else if (cbbDatePaidThan1.getSelectedItem().equals("<=")) {
                // Lấy một chuỗi dạng: "[Date Paid] <= '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Paid] <= " + "'" + cbbDatePaidYear1.getSelectedItem().toString() + "-" + cbbDatePaidMonth1.getSelectedItem().toString() + "-" + cbbDatePaidDay1.getSelectedItem().toString() + "'";
                list.add(select);
            }else if (cbbDatePaidThan1.getSelectedItem().equals(">")) {
                // Lấy một chuỗi dạng: "[Date Paid] > '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Paid] > " + "'" + cbbDatePaidYear1.getSelectedItem().toString() + "-" + cbbDatePaidMonth1.getSelectedItem().toString() + "-" + cbbDatePaidDay1.getSelectedItem().toString() + "'";
                list.add(select);

                if (cbbDatePaidThan2.getSelectedItem().equals("<")) {
                    // Lấy một chuỗi dạng: "[Date Paid] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Paid] < " + "'" + cbbDatePaidYear2.getSelectedItem().toString() + "-" + cbbDatePaidMonth2.getSelectedItem().toString() + "-" + cbbDatePaidDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }else if (cbbDatePaidThan2.getSelectedItem().equals("<=")) {
                    // Lấy một chuỗi dạng: "[Date Paid] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Paid] <= " + "'" + cbbDatePaidYear2.getSelectedItem().toString() + "-" + cbbDatePaidMonth2.getSelectedItem().toString() + "-" + cbbDatePaidDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }
            }else if (cbbDatePaidThan1.getSelectedItem().equals(">=")) {
                // Lấy một chuỗi dạng: "[Date Paid] > '2012-7-8'" với ngày tháng lấy từ combobox
                String select = "[Date Paid] >= " + "'" + cbbDatePaidYear1.getSelectedItem().toString() + "-" + cbbDatePaidMonth1.getSelectedItem().toString() + "-" + cbbDatePaidDay1.getSelectedItem().toString() + "'";
                list.add(select);

                if (cbbDatePaidThan2.getSelectedItem().equals("<")) {
                    // Lấy một chuỗi dạng: "[Date Paid] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Paid] < " + "'" + cbbDatePaidYear2.getSelectedItem().toString() + "-" + cbbDatePaidMonth2.getSelectedItem().toString() + "-" + cbbDatePaidDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }else if (cbbDatePaidThan2.getSelectedItem().equals("<=")) {
                    // Lấy một chuỗi dạng: "[Date Paid] <= '2012-7-8'" với ngày tháng lấy từ combobox
                    String select2 = "[Date Paid] <= " + "'" + cbbDatePaidYear2.getSelectedItem().toString() + "-" + cbbDatePaidMonth2.getSelectedItem().toString() + "-" + cbbDatePaidDay2.getSelectedItem().toString() + "'";
                    list.add(select2);
                }
            }
        }

        if (cbPaid.isSelected()) {
            if (rdbPaid.isSelected()) {
                String select = "[Paid] = 1" ;
                list.add(select);            
            }else{
                String select = "[Paid] = 0" ;
                list.add(select);
            }
        }

        this.dispose();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void cbbDateMadeMonth1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDateMadeMonth1ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDateMadeMonth1.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDateMadeYear1.getSelectedItem().toString());
        cbbDateMadeDay1.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDateMadeMonth1ItemStateChanged

    private void cbbDateMadeYear1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDateMadeYear1ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDateMadeMonth1.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDateMadeYear1.getSelectedItem().toString());
        cbbDateMadeDay1.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDateMadeYear1ItemStateChanged

    private void cbbDateMadeMonth2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDateMadeMonth2ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDateMadeMonth2.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDateMadeYear2.getSelectedItem().toString());
        cbbDateMadeDay2.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDateMadeMonth2ItemStateChanged

    private void cbbDateMadeYear2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDateMadeYear2ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDateMadeMonth2.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDateMadeYear2.getSelectedItem().toString());
        cbbDateMadeDay2.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDateMadeYear2ItemStateChanged

    private void cbbDatePaidMonth1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDatePaidMonth1ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDatePaidMonth1.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDatePaidYear1.getSelectedItem().toString());
        cbbDatePaidDay1.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDatePaidMonth1ItemStateChanged

    private void cbbDatePaidYear1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDatePaidYear1ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDatePaidMonth1.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDatePaidYear1.getSelectedItem().toString());
        cbbDatePaidDay1.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDatePaidYear1ItemStateChanged

    private void cbbDatePaidMonth2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDatePaidMonth2ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDatePaidMonth2.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDatePaidYear2.getSelectedItem().toString());
        cbbDatePaidDay2.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDatePaidMonth2ItemStateChanged

    private void cbbDatePaidYear2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbDatePaidYear2ItemStateChanged
        // TODO add your handling code here:
        PikaDate pika = new PikaDate();
        int month = Integer.parseInt(cbbDatePaidMonth2.getSelectedItem().toString());
        int year = Integer.parseInt(cbbDatePaidYear2.getSelectedItem().toString());
        cbbDatePaidDay2.setModel(pika.getDayByMonth(month, year));
    }//GEN-LAST:event_cbbDatePaidYear2ItemStateChanged

    private void txtPatientIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPatientIDActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtPatientIDActionPerformed

    private void txtPersonMadeIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPersonMadeIDActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtPersonMadeIDActionPerformed

    private void cbbDateMadeYear2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbbDateMadeYear2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cbbDateMadeYear2ActionPerformed

    private void cbPaidActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbPaidActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cbPaidActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                SearchBillingMore dialog = new SearchBillingMore(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    /**
     * Đây là list chứa chuỗi tìm kiếm
     */
    private ArrayList<String> list = new ArrayList<String>();

    /**
     * Method này trả về list chuỗi tìm kiếm
     * @return list chuỗi tìm kiếm
     */
    public ArrayList<String> getList() {
        return list;
    }


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup btgPaid;
    private javax.swing.JCheckBox cbCollectiorID;
    private javax.swing.JCheckBox cbDateMade;
    private javax.swing.JCheckBox cbDatePaid;
    private javax.swing.JCheckBox cbPaid;
    private javax.swing.JCheckBox cbPatientID;
    private javax.swing.JCheckBox cbPersonMadeID;
    private javax.swing.JComboBox cbbDateMadeDay1;
    private javax.swing.JComboBox cbbDateMadeDay2;
    private javax.swing.JComboBox cbbDateMadeMonth1;
    private javax.swing.JComboBox cbbDateMadeMonth2;
    private javax.swing.JComboBox cbbDateMadeThan1;
    private javax.swing.JComboBox cbbDateMadeThan2;
    private javax.swing.JComboBox cbbDateMadeYear1;
    private javax.swing.JComboBox cbbDateMadeYear2;
    private javax.swing.JComboBox cbbDatePaidDay1;
    private javax.swing.JComboBox cbbDatePaidDay2;
    private javax.swing.JComboBox cbbDatePaidMonth1;
    private javax.swing.JComboBox cbbDatePaidMonth2;
    private javax.swing.JComboBox cbbDatePaidThan1;
    private javax.swing.JComboBox cbbDatePaidThan2;
    private javax.swing.JComboBox cbbDatePaidYear1;
    private javax.swing.JComboBox cbbDatePaidYear2;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JPanel pnlBootom;
    private javax.swing.JPanel pnlCenter;
    private javax.swing.JRadioButton rdbNotPaid;
    private javax.swing.JRadioButton rdbPaid;
    private javax.swing.JTextField txtCollectorID;
    private javax.swing.JTextField txtPatientID;
    private javax.swing.JTextField txtPersonMadeID;
    // End of variables declaration//GEN-END:variables

}
